Skip to content

Instantly share code, notes, and snippets.

@sunmeat
sunmeat / Program.cs
Created December 3, 2025 12:02
terminal middleware component asp .net core
// CreateBuilder створює новий екземпляр WebApplicationBuilder із попередньо встановленими параметрами.
// до методу CreateBuilder можна передавати аргументи командного рядка, вказані під час запуску додатка.
var builder = WebApplication.CreateBuilder(args);
// метод Build створює екземпляр веб-додатка
var app = builder.Build();
/* окрім створення об’єкта WebApplication, клас WebApplicationBuilder виконує
ще низку завдань, серед яких можна виділити такі:
- налаштування конфігурації додатка
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@kennwhite
kennwhite / 1944_OSS_Simple_Sabotage_Field_Manual.md
Last active March 9, 2026 23:08
1944 OSS Simple Sabotage Field Manual
@ifindev
ifindev / prd.md
Last active March 9, 2026 23:05
PRD Aplikasi Manajemen Lapangan Futsal

Product Requirement Document

Sistem Manajemen Lapangan Futsal (FutsalKu)

Versi: 1.0 — Draft

Tanggal: 9 Maret 2026

Status: In Review

@cptmacp
cptmacp / endfield_discord.js
Last active March 9, 2026 23:03
automate for skport endfield daily login claim via js script and send notification to discord channel
/** Config Starts. **/
const profiles = [
{
cred: "xxxxxxxxxxxxxxxxxxxxxx", // Replace with your Endfield cred cookie value ( get from cookie )
skGameRole: "xxxxxxxxxxxx", // Replace with your Endfield skGameRole cookie value ( get from cookie )
platform: "3",
vName: "1.0.0",
accountName: "acc_name" // Replace with a name to identify this account( a simple identifier )
}
@plateaukao
plateaukao / gist:e546f8226727acb3a25597e572ef39fc
Last active March 9, 2026 23:01
2-cre-rotate-japanese-book.lua
local Blitbuffer = require("ffi/blitbuffer")
local ReaderRolling = require("apps/reader/modules/readerrolling")
local Screen = require("device").screen
local logger = require("logger")
local ReaderView = require("apps/reader/modules/readerview")
local Size = require("ui/size")
ReaderRolling.onPreRenderDocument = function(self)
-- Only enable these hacks when the typography language has been set to Japanese.
@dvessel
dvessel / macOS_SytemPrefs.md
Created April 15, 2023 15:29 — forked from rmcdongit/macOS_SytemPrefs.md
Apple System Preferences URL Schemes

macOS 10.15 System Preference Panes

Below are a list of System Preference pane URLs and paths that can be accessed with scripting to assist users with enabling macOS security settings without having to walk them through launching System Preferences, finding panes, and scrolling to settings. Not all panes have an accessible anchor and some are OS specific.

To find the Pane ID of a specific pane, open the System Preferences app and select the desired Preference Pane. With the pane selected, open the ScriptEditor.app and run the following script to copy the current Pane ID to your clipboard and display any available anchors:

tell application "System Preferences"
	set CurrentPane to the id of the current pane
	set the clipboard to CurrentPane